package com.woniu.uitls;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResponseUtil {
    private Integer code;
    private String msg;
    private Object data;

    public ResponseUtil(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static ResponseUtil get(Integer code, String msg, Object data){
        return new ResponseUtil(code,msg,data);
    }
    public static ResponseUtil get(Integer code,String msg){
        return new ResponseUtil(code,msg);
    }

}
